package com.ruoyi.tracks.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 歌曲对象 tracks
 *
 * @author lin
 * @date 2025-03-04
 */
public class Tracks extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 时长 */
    @Excel(name = "时长")
    private Long duration;

    /** 播放数 */
    @Excel(name = "播放数")
    private Long playCount;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 歌手ID */
    @Excel(name = "歌手ID")
    private Long artistId;


    private String artistName;

    /** 专辑ID */
    @Excel(name = "专辑ID")
    private Long albumId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDuration(Long duration)
    {
        this.duration = duration;
    }

    public Long getDuration()
    {
        return duration;
    }
    public void setPlayCount(Long playCount)
    {
        this.playCount = playCount;
    }

    public Long getPlayCount()
    {
        return playCount;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setArtistId(Long artistId)
    {
        this.artistId = artistId;
    }

    public Long getArtistId()
    {
        return artistId;
    }
    public void setAlbumId(Long albumId)
    {
        this.albumId = albumId;
    }

    public Long getAlbumId()
    {
        return albumId;
    }
    public String getArtistName() { return artistName; }
    public void setArtistName(String artistName) { this.artistName = artistName; }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("duration", getDuration())
                .append("playCount", getPlayCount())
                .append("title", getTitle())
                .append("artistId", getArtistId())
                .append("albumId", getAlbumId())
                .toString();
    }
}
